.class Lrexsee/core/browser/RexseePrompt$48;
.super Ljava/lang/Object;
.source "RexseePrompt.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/browser/RexseePrompt;->showSlider(Lrexsee/core/browser/clazz/PromptArgumentsSheet;Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/browser/RexseePrompt;

.field private final synthetic val$argumentsSheet:Lrexsee/core/browser/clazz/PromptArgumentsSheet;

.field private final synthetic val$layout:Landroid/widget/LinearLayout;

.field private final synthetic val$returnListener:Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;


# direct methods
.method constructor <init>(Lrexsee/core/browser/RexseePrompt;Lrexsee/core/browser/clazz/PromptArgumentsSheet;Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;Landroid/widget/LinearLayout;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/browser/RexseePrompt$48;->this$0:Lrexsee/core/browser/RexseePrompt;

    iput-object p2, p0, Lrexsee/core/browser/RexseePrompt$48;->val$argumentsSheet:Lrexsee/core/browser/clazz/PromptArgumentsSheet;

    iput-object p3, p0, Lrexsee/core/browser/RexseePrompt$48;->val$returnListener:Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;

    iput-object p4, p0, Lrexsee/core/browser/RexseePrompt$48;->val$layout:Landroid/widget/LinearLayout;

    .line 975
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5
    .param p1, "dialog"    # Landroid/content/DialogInterface;
    .param p2, "whichButton"    # I

    .prologue
    const-string v4, "\""

    .line 978
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    .line 979
    packed-switch p2, :pswitch_data_0

    .line 996
    .end local p0    # "this":Lrexsee/core/browser/RexseePrompt$48;
    :goto_0
    return-void

    .line 981
    .restart local p0    # "this":Lrexsee/core/browser/RexseePrompt$48;
    :pswitch_0
    iget-object v2, p0, Lrexsee/core/browser/RexseePrompt$48;->val$argumentsSheet:Lrexsee/core/browser/clazz/PromptArgumentsSheet;

    iget-object v2, v2, Lrexsee/core/browser/clazz/PromptArgumentsSheet;->options:[Ljava/lang/String;

    if-nez v2, :cond_0

    .line 982
    iget-object v2, p0, Lrexsee/core/browser/RexseePrompt$48;->val$returnListener:Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;

    iget-object v3, p0, Lrexsee/core/browser/RexseePrompt$48;->val$layout:Landroid/widget/LinearLayout;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p0

    .end local p0    # "this":Lrexsee/core/browser/RexseePrompt$48;
    check-cast p0, Lrexsee/core/widget/Slider;

    invoke-virtual {p0}, Lrexsee/core/widget/Slider;->getValue()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;->run(Ljava/lang/String;)V

    goto :goto_0

    .line 984
    .restart local p0    # "this":Lrexsee/core/browser/RexseePrompt$48;
    :cond_0
    const-string v1, ""

    .line 985
    .local v1, "rtn":Ljava/lang/String;
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_1
    iget-object v2, p0, Lrexsee/core/browser/RexseePrompt$48;->val$argumentsSheet:Lrexsee/core/browser/clazz/PromptArgumentsSheet;

    iget-object v2, v2, Lrexsee/core/browser/clazz/PromptArgumentsSheet;->options:[Ljava/lang/String;

    array-length v2, v2

    if-lt v0, v2, :cond_1

    .line 989
    iget-object v2, p0, Lrexsee/core/browser/RexseePrompt$48;->val$returnListener:Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "["

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "]"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;->run(Ljava/lang/String;)V

    goto :goto_0

    .line 986
    :cond_1
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    if-nez v0, :cond_2

    const-string v3, ""

    :goto_2
    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 987
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "\""

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v2, p0, Lrexsee/core/browser/RexseePrompt$48;->val$layout:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lrexsee/core/widget/Slider;

    invoke-virtual {v2}, Lrexsee/core/widget/Slider;->getValue()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\""

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 985
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    .line 986
    :cond_2
    const-string v3, ","

    goto :goto_2

    .line 993
    .end local v0    # "i":I
    .end local v1    # "rtn":Ljava/lang/String;
    :pswitch_1
    iget-object v2, p0, Lrexsee/core/browser/RexseePrompt$48;->val$returnListener:Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lrexsee/core/browser/RexseePrompt$OnPromptReturnListener;->run(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 979
    nop

    :pswitch_data_0
    .packed-switch -0x2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
